<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">

  <head>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- Meta, title, CSS, favicons, etc. -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>Gentelella Alela! | </title>

    <!-- Bootstrap -->
    <link href="/PHPShiZhanDiLiuZu/yuejian6/Public/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link href="/PHPShiZhanDiLiuZu/yuejian6/Public/css/font-awesome.min.css" rel="stylesheet">
    <!-- NProgress -->
    <link href="/PHPShiZhanDiLiuZu/yuejian6/Public/css/nprogress.css" rel="stylesheet">
    
    <!-- Custom styling plus plugins -->
    <link href="/PHPShiZhanDiLiuZu/yuejian6/Public/css/custom.min.css" rel="stylesheet"> 
  </head>

  <body class="nav-md">
    <div class="container body">
      <div class="main_container">
        <div class="col-md-3 left_col">
                      <div class="left_col scroll-view">
            <div class="navbar nav_title" style="border: 0;">
              <a href="index.html" class="site_title"><span>约健APP后台管理</span></a>
            </div>

            <div class="clearfix"></div>

            <!-- menu profile quick info -->
            <div class="profile clearfix">
              <div class="profile_pic">
                <img src="/PHPShiZhanDiLiuZu/yuejian6/Public/pic/img.jpg" alt="..." class="img-circle profile_img">
              </div>
              <div class="profile_info">
                <span>系统管理员</span>
                <h2>Admin</h2>
              </div>
            </div>
            <!-- /menu profile quick info -->

            <br />

            <!-- sidebar menu -->
            <div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
              <div class="menu_section">
                <h3>约健6组</h3>
                <ul class="nav side-menu">
                  <li><a> 晒图管理 </a>
                    <ul class="nav child_menu">
                      <li><a href="/PHPShiZhanDiLiuZu/yuejian6/Admin/Shaitu/shaitulist">图片管理</a></li>
                      <li><a href="/PHPShiZhanDiLiuZu/yuejian6/Admin/Comments/commentslist">评论管理</a></li>
                    </ul>
                  </li>
                  <li><a> 约健体育联盟 </a>
                    <ul class="nav child_menu">
                      <li><a href="/PHPShiZhanDiLiuZu/yuejian6/Admin/Coach/coachList">教练管理</a></li>
                      <li><a href="/PHPShiZhanDiLiuZu/yuejian6/Admin/Play/playList">比赛管理</a></li>
                      <li><a href="/PHPShiZhanDiLiuZu/yuejian6/Admin/Activity/activitylist">活动管理</a></li>    
                    </ul>
                  </li>
                </ul>
              </div>
            </div>
            <!-- /sidebar menu -->

            <!-- /menu footer buttons -->
            <div class="sidebar-footer hidden-small">
                <span class="glyphicon glyphicon-cog" aria-hidden="true"></span>
                <span class="glyphicon glyphicon-fullscreen" aria-hidden="true"></span>
                <span class="glyphicon glyphicon-eye-close" aria-hidden="true"></span>
                <span class="glyphicon glyphicon-off" aria-hidden="true"></span>
            </div>
            <!-- /menu footer buttons -->
          </div>
        </div>
        <!-- top navigation -->
                    <div class="top_nav">
          <div class="nav_menu">
            <nav>
<!--               <div class="nav toggle">
                <a id="menu_toggle"><button>放大</button></a>
              </div> -->

              <ul class="nav navbar-nav navbar-right">
                <li class="">
                  <a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                    <img src="/PHPShiZhanDiLiuZu/yuejian6/Public/pic/img.jpg" alt="">Admin
                  </a>
                  <ul class="dropdown-menu dropdown-usermenu pull-right">
                    <li><a href="/PHPShiZhanDiLiuZu/yuejian6/ClubAdmin/Index/index">切换俱乐部管理员</a></li>
                  </ul>
                </li>
              </ul>
            </nav>
          </div>
        </div>
        <!-- /top navigation -->



        <!-- 各自的模块在下面 -->
                <!-- page content -->
        <div class="right_col" role="main">
          <div class="">
            <div class="page-title">
              <div class="title_left">
                <h3> 约健6 <small> 教练管理</small> </h3>
              </div>
<form action="<?php echo U('index.php/Admin/Coach/search');?>" method="post" enctype="multipart/form-data">
              <div class="title_right">
                <div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search">
                  <div class="input-group">
                    <input type="text" class="form-control" placeholder="搜索...">
                    <span class="input-group-btn">
                        <button class="btn btn-default" type="button">Go!</button>
                    </span>
                  </div>
                </div>
              </div>
            </div>

   <div class="x_content">
 
                    <table id="datatable" class="table table-striped table-bordered">
                      <thead>
                        <tr>
                          <th>图片</th>
                          <th>编号</th>
                          <th>姓名</th>
                          <th>关注人数</th>
                          <th>简介</th>
                          <th>大师状态</th>
                          <th>添加时间</th>
                          <th>操作</th>
                        </tr>
                      </thead>


                      <tbody>
                   <?php if(is_array($coach)): $i = 0; $__LIST__ = $coach;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
                     <td align="center"><img src="/PHPShiZhanDiLiuZu/yuejian6/Public/pic/<?php echo ($vo["coach_photo"]); ?>" width=85 alt="无头像"></td>
                     <td><?php echo ($vo["coach_id"]); ?></td>
                     <td><?php echo ($vo["coach_name"]); ?></td>
                     <td><?php echo ($vo["coach_attention"]); ?></td>
                     <td><?php echo ($vo["coach_introduce"]); ?></td>
                     <td><?php echo ($vo["coach_dashi"]); ?></td>
                     <td><?php echo ($vo["coach_date"]); ?></td>
                     <!-- <td><?php echo (substr($vo["finddate"],0,10)); ?></td>
                     <td><?php echo (substr($vo["createtime"],0,10)); ?></td> -->
                     
                      
                      
                      <td>
                         <div class="btn-group">
                        <a class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#">
                        Action
                          <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu pull-right">
                          <li><?php if(($vo["coach_dashi"] == 1)): else: ?><a href="changestate/coach_id/<?php echo ($vo["coach_id"]); ?>/coach_dashi/<?php echo ($vo["coach_dashi"]); ?>"><i class="icon-envelope"></i>选为大师</a><?php endif; ?></li>
                          <li><?php if(($vo["coach_dashi"] == 0)): else: ?><a href="changestate/coach_id/<?php echo ($vo["coach_id"]); ?>/coach_dashi/<?php echo ($vo["coach_dashi"]); ?>"><i class="icon-envelope"></i>撤销大师</a><?php endif; ?></li>

                        </ul>

                        <!-- <ul class="dropdown-menu pull-right">
                          <li><a href="#"><i class="icon-heart"></i>  <?php if(($vo["state"] == 0)): ?><a href="changestate/id/<?php echo ($vo["id"]); ?>/state/<?php echo ($vo["state"]); ?>"><i class="icon-bell-alt"></i>暂停使用</a>
                                <?php else: ?>
                                <a href="changestate/id/<?php echo ($vo["id"]); ?>/state/<?php echo ($vo["state"]); ?>"><i class="icon-bell"></i>取消禁用</a><?php endif; ?></a></li>
                          <li><a href="editpswd/id/<?php echo ($vo["id"]); ?>"><i class="icon-key"></i> 密码重置</a></li>
                          <li><a href="deluser/id/<?php echo ($vo["id"]); ?>"><i class="icon-trash"></i> 删除</a></li>
                        </ul> -->


                      </div>
                      </td>

                      <!-- substr取子串 -->
                      <!-- <td><?php if(($vo["state"] == 0)): ?><a href="changestate/id/<?php echo ($vo["id"]); ?>/state/<?php echo ($vo["state"]); ?>">暂停使用</a><?php else: ?><a href="changestate/id/<?php echo ($vo["id"]); ?>/state/<?php echo ($vo["state"]); ?>">取消禁用</a><?php endif; ?>| -->
                      <!-- <a href="editpswd/id/<?php echo ($vo["id"]); ?>">密码重置</a>|<a href="deluser/id/<?php echo ($vo["id"]); ?>">删除</a> -->
                      <!-- <?php if(($vo["state"] == 0)): ?><a href="changestate/id/<?php echo ($vo["id"]); ?>/state/1">暂停使用</a><?php else: ?><a href="changestate/id/<?php echo ($vo["id"]); ?>/state/0">取消禁用</a><?php endif; ?> -->
                      <!-- <a href="/diuba/index.php?m=admin&c=user&a=changestate&id=2&state=1">禁用</a> -->
                   </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                </tbody>
                    </table>
                    <div><center><?php echo ($page1); ?></center></div>
                  </div>
                </div>

          </div>

      </div>




    </div>
    <!-- jQuery -->
    <script src="/PHPShiZhanDiLiuZu/yuejian6/Public/css/jquery.min.js"></script>
    <!-- Bootstrap -->
    <script src="/PHPShiZhanDiLiuZu/yuejian6/Public/css/bootstrap.min.js"></script>
    <!-- FastClick -->
    <script src="/PHPShiZhanDiLiuZu/yuejian6/Public/css/fastclick.js"></script>
    <!-- NProgress -->
    <script src="/PHPShiZhanDiLiuZu/yuejian6/Public/css/nprogress.js"></script>

    <!-- Custom Theme Scripts -->
    <script src="/PHPShiZhanDiLiuZu/yuejian6/Public/css/custom.min.js"></script>
  </body>
</html>